/**
* bj_modal.css v1.0
*
* http://www.bugjun.cn
*/
.bj-modal-warp{
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s;
}
.bj-modal-warp.backdrop{
	position: fixed;
	z-index: 9999;
	display: flex;
	top: 0;
	left: 0;
	height: 100%;
	width:100%;
	justify-content: center;
	align-items: center;
	background: rgba(0,0,0,0.5);
}
.bj-modal-warp.show{
	opacity: 1;
	visibility: visible;
}
.bj-modal{
	transition: all 0.5s;
	opacity: 0;
	background: #fff;
	box-shadow:0 0 20px 1px rgba(0,0,0,0.4);
	width: auto;
	margin: 10px;
    max-height: 88%;
}
.bj-modal-warp:not(.backdrop) .bj-modal {
    position: fixed;
    left: 0;
    right: 0;
    margin: 0 auto;
    top: 50%;
}
.bj-modal-warp.flip .bj-modal{
	-webkit-transform: rotateY(180deg);
    -ms-transform: rotateY(180deg);
    transform: rotateY(180deg);
}
.bj-modal-warp.flip.show .bj-modal{
	-webkit-transform: rotateY(0);
    -ms-transform: rotateY(0);
    transform: rotateY(0);
}
.bj-modal-warp.slide-left .bj-modal{
	-webkit-transform:translateX(50%);
    -ms-transform: translateX(50%);
    transform: translateX(50%);
}
.bj-modal-warp.slide-right .bj-modal{
	-webkit-transform:translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
}
.bj-modal-warp.slide-up .bj-modal{
	-webkit-transform:translateY(50%);
    -ms-transform: translateY(50%);
    transform: translateY(50%);
}
.bj-modal-warp.slide-down .bj-modal{
	-webkit-transform:translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}
.bj-modal-warp.slide-left.show .bj-modal,.bj-modal-warp.slide-right.show .bj-modal,
.bj-modal-warp.slide-up.show .bj-modal,.bj-modal-warp.slide-down.show .bj-modal{
	-webkit-transform:translate(0);
    -ms-transform: translate(0);
    transform: translate(0);
}
.bj-modal-warp.zoom .bj-modal{
	transform: scale(0.5);
}
.bj-modal-warp.zoom.show .bj-modal{
	transform: scale(1);
}
.bj-modal-warp.show .bj-modal{
	opacity: 1;
}

.bj-modal-header{
	padding: 15px;
	border-bottom: 1px solid #e5e5e5;
}

.bj-modal-close{
	float: right;
    text-decoration: none;
    font-size: 20px;
    line-height: 1;
    color: #8c8c8c;
}

.bj-modal-title{
	margin: 0;
	font-size: 18px;
}

.bj-modal-body{
	padding: 15px;
	position: relative;
    overflow: auto;
}

.bj-modal-body p{
	margin: 0 0 1em 0;
}

.bj-modal-footer{
	padding: 15px;
	text-align: right;
}

.bj-btn{
	padding: 6px 12px;
	text-decoration: none;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
}
.bj-btn:hover{
	text-decoration: none;
}

.bj-btn-dark{
	background: #333;
	color: #fff;
}
.bj-btn-light{
	background: #fff;
	color: #333;
}
@media (min-width: 768px) {
	.bj-modal{
		width: 600px;
	}
}